package com.bd.demo

import com.hailiao.bdproto2p1.bean.basic.BDTXR_Bean
import com.hailiao.bdproto2p1.proto.Proto2p1Basic
import com.hailiao.hlbdcore.HLBDCore
import com.hailiao.hlbdcore.base.HLBDClient
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking

fun main() {
    Test().init()
    HLBDCore.postReceive(HLBDClient(), "", byteArrayOf(0x00, 0x01), false, Proto2p1Basic.TXR, BDTXR_Bean())
    runBlocking {
        TestJava.test()

        delay(2000)
    }
}

suspend fun susFunc(): List<String> {
    delay(1000L)
    return listOf("1", "2", "3")
}